<#include "/_pagelet/constant.html"/>
<!DOCTYPE html>
<html lang="zh">
<head>
<#include "/_pagelet/header.html"/>
<style>
.main-content {
	margin-left: 0px;
}

.main-content .breadcrumb {
	margin-left: 12px;
}
</style>
</head>

<body>
	<div class="main-container container-fluid">
		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<ul class="breadcrumb">
					<li><i class="icon-home home-icon"></i> <a href="javascript:;">首页</a>
						<span class="divider"> <i
							class="icon-angle-right arrow-icon"></i>
					</span></li>
					<li class="active">系统管理</li>
				</ul>
				<!--.breadcrumb-->

				<!-- <div class="nav-search" id="nav-search">
					<form class="form-search" action='' method='post'
						onsubmit="return false;">
						<span class="input-icon"> <input type="text"
							placeholder="搜索" class="input-small nav-search-input"
							id="nav-search-input" autocomplete="off" /> <i
							class="icon-search nav-search-icon"></i>
						</span>
					</form>
				</div> -->
				<!--#nav-search-->
			</div>

			<div class="page-content">
				<div class="page-header position-relative">
					<h1>
						系统管理 <small><i class="icon-double-angle-right"></i> 参数设置</small>
					</h1>
				</div>
				<!--/.page-header-->


				<div class="row-fluid">
					<div class="span12">
						<div class="row-fluid">
							<div class="alert alert-block alert-error">
								<button type="button" class="close" data-dismiss="alert">
									<i class="icon-remove"></i>
								</button>
								<strong> <i class="icon-info-sign"></i> 系统提示：
								</strong>
							</div>
						</div>
						<!-- tips -->

						<div class="row-fluid">
							<div class="tabbable">
								<ul class="nav nav-tabs" id="myTab">
									<li class="active"><a data-toggle="tab" href="#info">
											<i class="green icon-edit bigger-110"></i> 参数设置
									</a></li>
								</ul>

								<div class="tab-content">
									<div class="tab-pane in active"><#include
										"_pagelet/form.html"/></div>
								</div>
							</div>
						</div>
						<!-- form -->

					</div>
				</div>
			</div>
		</div>
	</div>

	<!-- 模态框（Modal） -->
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">警告</h4>
				</div>
				<div class="modal-body">
					#*
					<!-- 请输入正确的手机号 -->
					*#
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>
</body>
</html>

<#include "/_pagelet/js.html"/>
<script type='text/javascript'
	src='${(conf_vPath)!}static/js/iframe.js?v12'></script>
<script>
	function edit(src) {
		var _inp = $(src);
		var _data = {
			id : _inp.attr('name'),
			s_value : _inp.val(),
		};

		$.ajax({
			url : './editInfo',
			type : 'POST',
			dataType : 'JSON',
			data : _data,
			success : function(data) {
				if (!data.success) {
					$('#myModal .modal-body').text(data.msg);
					$('#myModal .modal-title').text('警告');
					$('#myModal').modal('show');
					return;
				}

				$('#myModal .modal-body').text('操作成功');
				$('#myModal .modal-title').text('提示');
				$('#myModal').modal('show');
			},
			error : function() {
				console.log(arguments);
				$('#myModal .modal-body').text('操作失败');
				$('#myModal .modal-title').text('警告');
				$('#myModal').modal('show');
			}
		});
	}
</script>
